package com.sevennotes.classtable.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable
import java.util.*

@Entity(tableName = "grade_point_record")
data class GradePointRecord(
    @PrimaryKey(autoGenerate = true) var id: Int? = null,
    @ColumnInfo(name = "student_id") var studentId: Int = 0,
    //分数变化量
    @ColumnInfo(name = "gp_change") var gpChange: Int = 0,
    //分数变化事由
    @ColumnInfo(name = "note") var note: String = "",
    @ColumnInfo(name = "change_date") var changeDate: Date = Date()
) : Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}